package DefaultNamespace;

public class Rt_receiptPortTypeProxy implements DefaultNamespace.Rt_receiptPortType {
  private String _endpoint = null;
  private DefaultNamespace.Rt_receiptPortType rt_receiptPortType = null;
  
  public Rt_receiptPortTypeProxy() {
    _initRt_receiptPortTypeProxy();
  }
  
  public Rt_receiptPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initRt_receiptPortTypeProxy();
  }
  
  private void _initRt_receiptPortTypeProxy() {
    try {
      rt_receiptPortType = (new DefaultNamespace.Rt_receiptLocator()).getrt_receiptHttpPort();
      if (rt_receiptPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)rt_receiptPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)rt_receiptPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (rt_receiptPortType != null)
      ((javax.xml.rpc.Stub)rt_receiptPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public DefaultNamespace.Rt_receiptPortType getRt_receiptPortType() {
    if (rt_receiptPortType == null)
      _initRt_receiptPortTypeProxy();
    return rt_receiptPortType;
  }
  
  public java.lang.String receipt(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException{
    if (rt_receiptPortType == null)
      _initRt_receiptPortTypeProxy();
    return rt_receiptPortType.receipt(in0, in1);
  }
  
  public java.lang.String receipt_add(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException{
    if (rt_receiptPortType == null)
      _initRt_receiptPortTypeProxy();
    return rt_receiptPortType.receipt_add(in0, in1);
  }
  
  
}